package Test;

import bdqn.pojo.Person;
import bdqn.service.PersonService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

import static org.junit.Assert.*;

public class test_1 {
    @Test
    public void test(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");

        PersonService personService = (PersonService)context.getBean("PersonService");
        List<Person> info = personService.getLsitInfo();
        for (Person person : info) {
            System.out.println(person.toString());
        }
    }

}